import request from '@/utils/request'

export function roomCheckAdd(data) {
  return request({
    url: '/roomCheck/roomCheck',
    method: 'post',
    data
  })
}

export function goodsList(params){
  return request({
    url: '/goodsManage/goods',
    method: 'get',
    params
  })
}

export function goodsDelete(id){
  return request({
    url: '/goodsManage/goods/' + id,
    method: 'delete',
  })
}

export function goodsUpdate(id,data){
  return request({
    url: '/goodsManage/goods/' + id,
    method: 'put',
    data
  })
}

export function goodsStockSave(id,data){
  return request({
    url: '/goodsManage/goodsStock/' + id,
    method: 'put',
    data
  })
}

export function goodsStockOperation(id,data){
  return request({
    url: '/goodsManage/goodsStockOperation/' + id,
    method: 'put',
    data
  })
}
export function stockList(params){
  return request({
    url: '/stockManage/stockList',
    method: 'get',
    params
  })
}
